import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import store from "store/index.js" //引入vuex store
import util from '@/util/util.js'
import components from '@/components/components.js' //引入组件
import globalConfig from '@/config.js'

import {
	request
} from '@/util/request.js'
/*import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(ElementUI);*/
Vue.config.productionTip = false //关闭vue生产提示
Vue.prototype.utils = util; //引入util.js
Vue.prototype.globalConfig = globalConfig
Vue.prototype.request = request
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif
